package com.itheima.demo2generic;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Car {
    private String name;
    private int price;

    public void run() {
        System.out.println("car跑起来");
    }
}
